import gulp from 'gulp';
import runSequence from 'run-sequence';
import requireDir from 'require-dir';

requireDir('./gulp-tasks');

gulp.task('build-dev', (callback) => {
    runSequence(['build-script-dev', 'build-less-dev'],
        callback);
});

gulp.task('build-script-only-dev', (callback) => {
    runSequence(['build-script-dev'],
        callback);
});

gulp.task('build-less-only-dev', (callback) => {
    runSequence(['build-less-dev'],
        callback);
});

gulp.task('build', (callback) => {
    runSequence(['build-script', 'build-less'],
        callback);
});

gulp.task('build-script-only', (callback) => {
    runSequence(['build-script'],
        callback);
});

gulp.task('build-less-only', (callback) => {
    runSequence(['build-less'],
        callback);
});

gulp.task(
    'default',
    [
        'auto-compile-less',
        'auto-compile-script'
    ]
);